package org.spring.springboot.domain;

import org.json.JSONObject;

public class Symbol {
    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getTypeID() {
        return typeID;
    }

    public void setTypeID(int typeID) {
        this.typeID = typeID;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getUserid() {
        return userid;
    }

    public void setUserid(String userid) {
        this.userid = userid;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getIconURL() {
        return iconURL;
    }

    public void setIconURL(String iconURL) {
        this.iconURL = iconURL;
    }

    public int getUnitFixedFlag() {
        return unitFixedFlag;
    }

    public void setUnitFixedFlag(int unitFixedFlag) {
        this.unitFixedFlag = unitFixedFlag;
    }

    public int getMoldActionType() {
        return moldActionType;
    }

    public void setMoldActionType(int moldActionType) {
        this.moldActionType = moldActionType;
    }

    public int getAutoLabel() {
        return autoLabel;
    }

    public void setAutoLabel(int autoLabel) {
        this.autoLabel = autoLabel;
    }

    private  String uuid;
    private  String name;
    private  int typeID;
    private  String data;
    private  String userid; //'所属用户uuid,默认为系统模具',
    private  String category;//'other',
    private  String iconURL;
    private  int unitFixedFlag;// '为1表示图符中图元固定，不可单独修改',
    private  int moldActionType;//
    private  int autoLabel;//DEFAULT '1' COMMENT '是否自动生成标签',

    public int getDisorder() {
        return disorder;
    }

    public void setDisorder(int disorder) {
        this.disorder = disorder;
    }

    private int disorder;

    public String getDlftLabPos() {
        return dlftLabPos;
    }

    public void setDlftLabPos(String dlftLabPos) {
        this.dlftLabPos = dlftLabPos;
    }

    private  String dlftLabPos;

    public Symbol(){

    }
    public Symbol(String uuid, String name, int typeID, String data, String userid,
                  String category, String iconURL,
                  int unitFixedFlag, int moldActionType, int autoLabel,int disorder,
                  String dlftLabPos){
        this.uuid = uuid;
        this.name = name;

        this.typeID = typeID;
        this.data = data;
        this.userid = userid;
        this.category = category;
        this.iconURL = iconURL;
        this.unitFixedFlag = unitFixedFlag;
        this.moldActionType = moldActionType;
        this.autoLabel = autoLabel;
        this.disorder = disorder;
        this.dlftLabPos = dlftLabPos;
    }

    public JSONObject toJson(){
        JSONObject obj = new JSONObject();
        obj.put("uuid",this.uuid);
        obj.put("name",this.name);
        obj.put("typeID",this.typeID);
        obj.put("data",this.data);

        obj.put("userid",this.userid);
        obj.put("category",this.category);
        obj.put("iconURL",this.iconURL);
        obj.put("unitFixedFlag",this.unitFixedFlag);
        obj.put("moldActionType",this.moldActionType);
        obj.put("autoLabel",this.autoLabel);
        obj.put("disorder",this.disorder);
        obj.put("dlftLabPos",this.dlftLabPos);
        return obj;
    }

}
